package com.mls.fivedistrict.entity.request;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 转账请求参数
 * Created by chenxiuxiang on 2018/5/18.
 */
@Getter
@Setter
public class TransferAccountRequest {
    private Long userId;
    @NotNull(message = "目标用户不能为空")
    private Long targetUserId;
    @NotNull(message = "金额不能为空")
    @DecimalMin(value = "0", message = "转账数量不能小于0")
    private BigDecimal value;
    @NotNull(message = "积分不能为空")
    private Long integralId;
    /**
     * 钱包密码
     */
    @NotEmpty(message = "钱包密码不能为空")
    private String walletPassword;

    private String remind;

    /**
     * 是否是返利 官方账号-》个人账号 不验证钱包密码
     */
    private boolean isRebate;

}
